device tree: print a warning if a node is nested too deep
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 2 Apr 2012 15:50:44 +0000 (16:50 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 2 Apr 2012 15:50:44 +0000 (16:50 +0100)
commitae0a90bd8c2683e53f472854fa89ec3cb74c9ddb
tree4623b772f659dfb349dd237ab2033dba791eb40a
parent8166f512eaa2b3cb7e263291fc1b55db1b867eb0
device tree: print a warning if a node is nested too deep

Since device_tree_for_each_node() is called before printk() works, a
variable is used to switch between using early_printk() and printk().

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/device_tree.c